package com.ruoyi.business.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.common.utils.PageUtils;
import com.ruoyi.business.domain.TRegisterAllocation;
import com.ruoyi.business.vo.TRegisterAllocationVo;
import com.ruoyi.business.mapper.TRegisterAllocationMapper;
import com.ruoyi.business.service.ITRegisterAllocationService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 分配带教Service业务层处理
 *
 * @author Tellsea
 * @date 2024-02-01
 */
@Service
public class TRegisterAllocationServiceImpl extends ServiceImpl<TRegisterAllocationMapper, TRegisterAllocation> implements ITRegisterAllocationService {

    @Override
    public TableDataInfo<TRegisterAllocationVo> queryList(TRegisterAllocationVo entity) {
        return PageUtils.buildDataInfo(this.baseMapper.queryList(PageUtils.buildPage(), entity));
    }

    @Override
    public List<TRegisterAllocationVo> queryAll(TRegisterAllocationVo entity) {
        return this.baseMapper.queryList(entity);
    }

    @Override
    public TRegisterAllocationVo queryById(Long id) {
        return this.baseMapper.queryById(id);
    }
}
